# import numpy as np
# from PIL import Image
#
# # Read input image, and convert to NumPy array.
# img = np.array(Image.open('uploads/tmp.png'))  # img is 1080 rows by 1920 cols and 4 color channels, the 4'th channel is alpha.
#
# # Find indices of non-transparent pixels (indices where alpha channel value is above zero).
# idx = np.where(img[:, :, 3] > 0)
#
# # Get minimum and maximum index in both axes (top left corner and bottom right corner)
# x0, y0, x1, y1 = idx[1].min(), idx[0].min(), idx[1].max(), idx[0].max()
#
# # Crop rectangle and convert to Image
# out = Image.fromarray(img[y0:y1+1, x0:x1+1, :])
#
# # Save the result (RGBA color format).
# out.save('inner.png')

import time
time.sleep(0.5)
print("hhaa")